import request from '@/utils/request'

// 查询设备绑定列表
export function listdeviceBinding(query) {
  return request({
    url: '/enterprise/deviceBinding/list',
    method: 'get',
    params: query
  })
}

// 查询设备绑定详细
export function getdeviceBinding(id) {
  return request({
    url: '/enterprise/deviceBinding/' + id,
    method: 'get'
  })
}

// 新增设备绑定
export function adddeviceBinding(data) {
  return request({
    url: '/enterprise/deviceBinding',
    method: 'post',
    data: data
  })
}

// 修改设备绑定
export function updatedeviceBinding(data) {
  return request({
    url: '/enterprise/deviceBinding',
    method: 'put',
    data: data
  })
}

// 删除设备绑定
export function deldeviceBinding(id) {
  return request({
    url: '/enterprise/deviceBinding/' + id,
    method: 'delete'
  })
}

// 导出设备绑定
export function exportdeviceBinding(query) {
  return request({
    url: '/enterprise/deviceBinding/export',
    method: 'get',
    params: query
  })
}